package org.yray.sip.rtp.receive;


import io.netty.util.HashedWheelTimer;
import lombok.extern.slf4j.Slf4j;
import org.yray.sip.factory.inet.ITts;
import org.yray.sip.receive.IHandler;
import org.yray.sip.time.SendPacketTimer;
import org.yray.sip.utils.IcspBeanHolder;


@Slf4j
public abstract class IReqHandler extends AbstractBeanHolder implements IHandler,IComm {




    public byte[] body(byte[] bs)
    {
        byte[] tempBs=new byte[bs.length-16];
        System.arraycopy(bs,16,tempBs,0,bs.length-16);
        return tempBs;
    }

    public HashedWheelTimer getHashedWheelTimer()
    {
        return IcspBeanHolder.getBean(HashedWheelTimer.class);
    }

     SendPacketTimer getSendPacketTimer()
    {
        return IcspBeanHolder.getBean(SendPacketTimer.class);
    }

     ITts getTts()
    {
        return IcspBeanHolder.getBean(ITts.class);
    }



}
